package com.dongrj.framework.starter.log.dingding.chain;


import com.dongrj.framework.starter.log.dingding.DingTalkMsg;
import com.dongrj.framework.starter.log.dingding.MessageType;

/**
 * @author dongrongjun
 * @date 2020/12/02
 */
public class AttendanceRobot extends AbstractRobot {

    @Override
    protected boolean check(DingTalkMsg dingDing) {
        String message = dingDing.getMessage();
        return MessageType.DaKa.equals(message);
    }

    @Override
    public String getWebHook() {
        return "https://oapi.dingtalk.com/robot/send?access_token=49a1ab0e770a3be496973f11f12aecec54be76aa5974333f167c5198c90a462b";
    }

    @Override
    public String getSecret() {
        return "SECeb5f1a434119f2c01f20bfe6d45c3873a4ad6b8d5f6df06869d4621abd7e0c5e";
    }
}
